<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<!DOCTYPE html>
<html>

<head>
    <title>Sherlock</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <link rel="stylesheet" href="/css/main.css" type="text/css"/>
    <link rel="stylesheet" href="/css/registration-login.css" type="text/css"/>
    <script src="/script/lib/jquery-1.10.2.js"></script>
    <script src="/script/main.js"></script>
    <script src="/script/login.js"></script>
    <script src="/script/registration.js"></script>
</head>


<body>

<%--header--%>
<c:import url="fragments/header.jsp"/>

<%--reg--%>
<c:import url="fragments/registration-window.jsp"/>

<%--log--%>
<c:import url="fragments/login-window.jsp"/>

<div id="content">
    <img src="/img/sherlock_main.png"/>

    <div id="search">
        <form action="/search">
            <input id="field" name="query" type="text"/>
            <input type="hidden" name="maxresultsperpage" value="25">
            <input id="submit" name="submit" type="submit" value="Поиск"/>
        </form>
    </div>
</div>


<c:if test="${not empty loginErrorAttribute}">
    <script>
        $(document).ready(function(){
            $("#login-wind").show();
            $("#log_error").text("<c:out value="${loginErrorAttribute}"/>");
            $("#log_error").css("display", "block");
        });
    </script>
</c:if>
</body>
</html>